/**
 * @file Detect.cpp
 * @author enemy1205 (enemy1205@qq.com)
 * @brief 识别基类
 * @date 2021-09-12
 *
 */
#include "Detect.h"

using namespace cv;
using namespace std;

/**
 * @brief Detector基类初始化
 */
Detector::Detector() {
    frame = nullptr;
    c = 0;
    isTrackerMatched = false;
}

/**
 * @brief 调试展示函数
 * @note 由于每帧源图和结果图均保存在Detector内，故由Detector类show()
 */
void Detector::show(const uint8_t &tpf) {
//    namedWindow("bin", WINDOW_NORMAL);
    namedWindow("detect", WINDOW_NORMAL);
//    imshow("bin", bin);
    imshow("detect", *frame);
//    resizeWindow("bin", 800, 600);
//    resizeWindow("detect", 800, 600);
    c = waitKey(tpf);
}
